import requestapi from '@/utils/requestapi'
// import request from '@/utils/request'
// 查询仓库
export const warehouse = (params) => requestapi.get('/warehouse/page',(params))
// 删除仓库
export const delhouse = id => requestapi.delete(`warehouse`,{params:{ids:[id]}})
// 修改仓库
export const puthouse = params => requestapi.put('warehouse',params)
// 搜索
export const search = params => requestapi.get('/warehouse/page', { params })
// 获取下一个编号
export const next = () => requestapi.get('codeFactory/next/CK')
// 新增仓库
export const add = data => requestapi.post('warehouse',data)
